<div class="box-white"><?=$title?></div>
    <div class="box-content">
<?$attributes = array('class' => 'email', 'id' => 'checknew');
echo form_open('admin/dels', $attributes);?>    
<input type="hidden" name="page" value="<?=(int)$this->uri->segment('3')?>">
        <table class="admindata">
            <thead>
                <tr>
                    <th colspan="6">
                        <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                        Hiện có <?=$num?> chức năng
                        <div class="fr">
                            <a href="<?=site_url('func_permit/add/'.$this->uri->segment(3))?>">Thêm mới</a>
                        </div>
                    </th>
                </tr>
                <tr>
                    <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                    <th>ID</th>
                    <th>Tên Modules</th>
                    <th>Chức năng</th>
                    <th>Mô tả</th>
                    <th class="publish">Chức năng</th>
                    
                </tr>                
            </thead>
            <?
            $k=1;
            foreach($list as $rs):?>
            <tr class="row<?=$k?>">
                <td><input type="checkbox" name="ar_id[]" value="<?=$rs->function_id?>"></td>
                <td><?=$rs->function_id?></td>
                <td>
                    <?=$rs->permission_name?>
                </td>
                <td><?=$rs->function_name?></td>
                <td><?=$rs->function_notice?></td>
                <td align="center">
                    <?=icon_edit('func_permit/edit/'.$rs->permission_id.'/'.$rs->function_id)?>
                </td>
            </tr>
            <?
            $k=1-$k;
            endforeach;?>
            <tfoot>
                <td colspan="6">
                    <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                    Hiện có <?=$num?> chức năng
                </td>
            </tfoot>
        </table>  
<?=form_close()?>  
    <div>
</div>